#!/usr/bin/env node
const EventEmitter = require('events');

class Radio extends EventEmitter {
    constructor(station) {
        super(); // 调用父类的构造函数
        this.station = station;
        setTimeout(() => {
            this.emit('open', station);
        }, 0);
        setTimeout(() => {
            this.emit('stop', station);
        }, 5000);
    }
}

module.exports = Radio;